'''
Created on 2021年2月6日

@author: Wang Hongbin
'''

'''
Minimun:最小数
Maximum：最大数
Operator:运算符
Sum：生成多少题
Count：计数器
'''
import random

Minimum = 1
Maximum = 20
#Operator = ("+","-")
Sum = 100
Count = 0

while Count < Sum :
    NumA = random.randint(Minimum,Maximum)
    NumB = random.randint(Minimum,Maximum)
    if NumA + NumB <= Maximum:
        print(NumA,"+",NumB,"= ")
    elif NumB < NumA :
        print(NumA,"-",NumB,"= ")
    else:
        print(NumB,"-",NumA,"= ")
    Count=Count + 1

        
    
    
